# 题目：给定一个字符串，
# 按特定格式输出字符串的字符和对应的在字符串中出现的次数
# 范例1:输入输入aaaaaffd  输出a5f2d1
# 范例2:输入aaabbbbbsab  输出a4b6s1
import collections
# s="aaabbbbbsab"
# # dict1= dict(collections.Counter(s))
# dict1={}
# for a in s:
#     if a not  in dict1.keys():  #减少循环次数
#          dict1[a]=s.count(a)
# print(dict1)
# for a,b in dict1.items():
#     print(a,b,end="",sep="")





# 2.统计一个字符串中元音字母
# （'a', 'e', 'i', 'o', 'u'）的数量，不区分大小写。
# s="adasdadaAAdasjldjq"
# s.lower().count("a")
# count=0
# for e in s.lower():
#     if e in ('a', 'e', 'i', 'o', 'u'):
#         count+=1
# 3.给定一个字符串，找到它的第一个不重复的字符，并返回它的索引
s="qwesaawddaa"

# for i, e in enumerate(s):
#     if s.count(e)==1:
#         print(i,e)
#         break
# 下去了解一下,
#  collections
# map函数----->
list1=["123","23","213","43"]
sum1=0
for a in list1:
    sum1+=int(a)
print(sum1)
print(sum(map(int, list1)))


